Print error recovery flow (code = 15)
code = 15 means print stage failed (printError may contain printer-specific reason), but business operation can already be committed.
Recommended flow:
- Receive error response with
code = 15. - Save
documentExtIDand full response payload to incident log. - Call
/check_statusfor the same document. - If
docStatus = 1, treat payment/fiscal operation as completed and recover only printing:- call
/check_copy(requiresdocumentID) after printer issue is resolved.
- call
- If
docStatus = 0orcode = 44, continue polling/check_status. - If document is still not found in an unknown-delivery scenario, resend same operation with same
documentExtID.